package com.smart.web.api;


import com.smart.common.constants.ProductConstants;
import com.smart.common.dto.product.CategoryDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;


@FeignClient(value = ProductConstants.PRODUCT_SERVICE_NAME, path = "/category")
public interface CategoryApi {
    @GetMapping("/list")
    List<CategoryDto> list();
}
